package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.filestorage.entity.MxpioFileInfo;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_REPAIR_REVIEW")
@Schema(description="维修-故障复盘记录")
public class EquipmentRepairReview  extends BaseEntity {

    /**主键*/
    @Id
    @Generator
    @Column(name = "ID", updatable = false)
    @Schema(description = "主键")
    private String id;

    /**工单编码*/
    @Column(name = "BIZ_NO_")
    @Schema(description = "维修工单编码")
    private String bizNo;

    /**附件*/
    @Column(name = "ATTACHMENT_")
    @Schema(description = "附件")
    @Dict(dicCode = "fileNo", dicEntity = MxpioFileInfo.class, dicText = "fileName")
    private String attachment;

    /**内容*/
    @Column(name = "CONTENT_")
    @Schema(description = "内容")
    private String content;
}
